package com.ld.security.server.admin.modules.ge.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.mybatis.base.entity.SuperEntity;
import com.ld.security.common.mybatis.constant.SqlCondition;
import com.ld.security.common.mybatis.core.entity.SqlUserEntity;
import com.ld.security.server.admin.modules.ge.constant.GeDataSourceConstant;
import com.ld.security.server.admin.modules.ge.sql.SqlProjectPo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("ge_data_source")
@ApiModel("数据源")
@Data
public class GeDataSourceEntity extends SuperEntity implements SqlUserEntity
{
    @SqlKey(SqlCondition.like)
    @ApiModelProperty("编码")
    private String code;

    @SqlKey(SqlCondition.like)
    @ApiModelProperty("标题")
    private String label;

    @SqlKey(SqlCondition.like)
    @ApiModelProperty("地址")
    private String url;


    @SqlKey(SqlCondition.like)
    @ApiModelProperty("账号")
    private String username;

    @SqlKey(SqlCondition.like)
    @ApiModelProperty("密码")
    private String password;


    @SqlKey(SqlCondition.eq)
    @ApiModelProperty("数据源类型")
    private GeDataSourceConstant.dataSourceType dataSourceType;

    @SqlKey(SqlCondition.eq)
    @ApiModelProperty("工程编号")
    private String projectId;

    @SqlKey(SqlCondition.eq)
    @ApiModelProperty("创建人")
    private String crtUser;

        }
